<!-- eslint-disable vue/no-deprecated-slot-attribute -->
<template>
  <div>
    原生的demo
    <my-count msg="父组件传的默认值" >
        <div slot="customContent" style="font-weight: bold">父组件传入的插槽</div>
      </my-count>
  </div>
</template>
<script setup>
 const countEle = document.getElementsByTagName('my-count')[0];
 countEle.msg='父组件通过props传值'
// const printMsg = (event) => {
//   console.log("父组件收到的消息", event);
// };
// const msg = ref("我是第一条消息");
// setTimeout(() => {
//   msg.value = "我是第二条消息"; // 3s后更改msg的值
// }, 3000);
</script>

<style lang="less" scoped></style>
